package com.chixing.day10_hashcode_exception;

import java.util.Locale;

public class ExceptionDemo {
    public static void main(String[] args) {
        int[] a = {10,20,30};
        //System.out.println(a[4]);

        String s = null;
        fun(s); //NullPointerException 空指针异常： null.fun(), null 属性
    }
    public static void fun(String src){
        src = src.toLowerCase();//NullPointerException 空指针异常
    }
}
